package com.gxks.lhs.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 举报表
 * </p>
 *
 * @author LuoHaisong
 * @since 2023-05-27
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "Report对象", description = "举报表")
public class Report implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("举报ID，主键")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty("举报者ID，外键关联用户表")
    private String userId;

    @ApiModelProperty("被举报的商品ID，外键关联商品表")
    private String goodsId;

    @ApiModelProperty("商品名称，关联商品（冗余）")
    private String goodsName;

    @ApiModelProperty("举报类型，0表示虚假商品，1表示侵权商品，2表示其他问题")
    private String type;

    @ApiModelProperty("举报原因")
    private String reason;

    @ApiModelProperty("举报时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("举报状态，0表示未处理，1表示已处理")
    private Integer status;

    @ApiModelProperty("处理结果")
    private String reportResult;

    @ApiModelProperty("处理人的id")
    private String handlerId;

    @ApiModelProperty("处理人的用户名（冗余）")
    private String handlerName;

    @ApiModelProperty("处理时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime processingTime;
}
